<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<title>添加安全培训交底</title>
		<meta http-equiv="pragma" content="no-cache">
	    <meta http-equiv="cache-control" content="no-cache">
	    <meta http-equiv="expires" content="0">    
    
		<link href="/SCMDB/style/SuperEdit.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="/SCMDB/js/Super.js"></script>
		<script type="text/javascript" src="/SCMDB/js/DatePicker/WdatePicker.js"></script>
	</head>
	<body>
		<div class="main">
			<s:form action="securityTrainingAction!addSecurityTraining" theme="simple" method="post"
				onsubmit="return false;" enctype="multipart/form-data">
				<!-- 主体开始 -->
				<table border="0" cellpadding="1" cellspacing="1" class="tableModify">
					<tr>
						<th>标题：</th>
						<td>
							<s:textfield name="title" cssClass="sInput" title='标题' cssStyle="width:160px;" />
							<input type="hidden" value="must-input"/>
						</td>
					</tr>
					<tr>
						<th>交底类型：</th>
						<td>
							<div class="right">
								<s:checkboxlist name="trainingTypeIds"
												list="typeList" 
												listKey="sysId" 
												listValue="trainTypeName" />
							</div>
						</td>
					</tr>
					<tr>
						<th>交底日期：</th>
						<td>
							<s:textfield cssClass="timeInput" id="trainDate" name="trainDate" readonly="true" onclick="WdatePicker()" title="交底日期" />
							<input type="hidden" value="must-input"/>
						</td>
					</tr>
					<tr>
						<th>交底人：</th>
						<td>
							<s:textfield readonly="true" name="trainMansName" id="trainMansName" cssClass="sInput" title='交底人' cssStyle="width:160px" />
							<span style="cursor:pointer" onclick="selectEmployee();">选择人员</span>
							
							
							<input type="hidden" value="must-input"/>
							
							<s:hidden name="trainMans" id="trainMans"></s:hidden>
						</td>
					</tr>
				
					<tr>
						<th>附件：</th>
						<td><s:file name="image" cssStyle="width:223px;" /></td>
					</tr>
				</table>
			</s:form>
		</div>
	</body>
	
	<script type="text/javascript">
		function selectEmployee() {
			var settings = 'help:no;scroll:auto;status:no;dialogWidth:'+900 +'px;dialogHeight:'+580+'px';
			var result = window.showModalDialog("/SCMDB/emp/selectOM.jsp", null,settings);
			document.getElementById("trainMans").value = result.id;
			document.getElementById("trainMansName").value = result.name;
		}
	</script>
	
</html>


